package cn.itsource.api;

import cn.itsource.constants.Constants;
import cn.itsource.fallback.DriverPointApiFallback;
import cn.itsource.pojo.result.DriverPointResult;
import cn.itsource.result.JSONResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = Constants.Remote.SERVICE_BIGDATA,fallbackFactory = DriverPointApiFallback.class)
@Tag(name = "司机坐标API",description = "司机坐标API")
public interface DriverPointApi {

    @GetMapping("/remote/driver/point/list/{orderNo}")
    @Operation( summary= "查询司机坐标",description = "查询司机坐标")
    @Parameter(name = "orderNo",description = "司机坐标",required = true)
    JSONResult<List<DriverPointResult>> selectByOrderNo(@PathVariable String orderNo);


}
